﻿using AutoMapper;
using BCDto.TMS.Fence;
using BCEntity.TMS.Fence;
using BCMongoEntity.TMS.Fence;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BCService.MapperProfiles.TMS.Fence
{
    public class FenceProfile : Profile
    {
        public FenceProfile()
        {
            CreateMap<FenceRequestDto, FenceMongoEntity>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<FencePutDto, FenceMongoEntity>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<FenceMongoEntity, FenceEntity>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<FenceEntity, FenceDto>().IgnoreAllPropertiesWithAnInaccessibleSetter();
        }
    }
}
